execute if score SP_DrawCount System matches ..0 on target run title @s title [{"text":"研发机会用完了,请之后再来吧","color":"#ff0000","bold":true}]
execute if score SP_DrawCount System matches ..0 on target run playsound entity.villager.no master @s ~ ~ ~

data remove entity @s interaction
execute if score SP_DrawCount System matches ..0 run return fail

scoreboard players remove SP_DrawCount System 1
function dab:drawsystem/start_spdraw with storage dab:loot Now_SP_Poor

execute store result storage dab:loot SP_DrawCount int 1 run scoreboard players get SP_DrawCount System
execute store result storage dab:loot SP_MustDraw int 1 run scoreboard players get SP_MustDraw System
function dab:system/tools with storage dab:loot